﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;

public class SimpleSpriteOut : FadeOutBase {

    MeshRenderer render;

    private void Awake()
    {
        //render = GetComponentInChildren<MeshRenderer>();
        //render.material.color = new Color(1, 1, 1, 0);
    }

    void Start () {
        //Color temColor = render.material.color;
        //Tweener tweener = DOTween.ToAlpha(() => temColor, x => temColor = x, 0f, 1f);
        //tweener.OnUpdate(() => { render.material.color = temColor; });
        //tweener.OnComplete(() => {
        //    GameObject.Destroy(gameObject);
        //});
        GameObject.Destroy(gameObject);
    }
	
	void Update () {
		
	}
}
